﻿@{
    ViewBag.Title = "更新服务元数据";
}
@using YmtRpc.Domain;
@model ServiceMetadata


<form role="form" method="post" action="/ServiceMetadata/Edit">
    <div class="control-group">

        <label for="AppId" class="control-label">应用编号：</label>
        <div class="textBoxDiv">
            @Html.TextBoxFor(Model => Model.AppId, new { @class = "form-control  list-group-item disabled", @readonly = "readonly", id = "AppId", name = "AppId" })
        </div>
        <br />
        <label for="ApiName" class="control-label">接口名称：</label>
        <div class="textBoxDiv">
            @Html.TextBoxFor(Model => Model.ApiName, new { @class = "form-control  list-group-item disabled", @readonly = "readonly", id = "ApiName", name = "ApiName" })
        </div>

        <br />
        <label for="HttpMethod" class="control-label">http方法：</label>
        <div class="textBoxDiv">
            @Html.TextBoxFor(Model => Model.HttpMethod, new { @class = "form-control  list-group-item disabled", @readonly = "readonly", id = "HttpMethod", name = "HttpMethod" })
        </div>

        <br />
        <label for="Host" class="control-label">Host：</label>
        <div class="textBoxDiv">
            @Html.TextBoxFor(Model => Model.Host, new { @class = "form-control", id = "Host", name = "Host" })
        </div>

        <label for="ApiPath" class="control-label">接口地址：</label>
        <div class="textBoxDiv">
            @Html.TextBoxFor(Model => Model.ApiPath, new { @class = "form-control", id = "ApiPath", name = "ApiPath" })
        </div>
        <br />
        <label for="Description" class="control-label">接口的用途描述：</label>
        <div class="textBoxDiv">
            @Html.TextBoxFor(Model => Model.Description, new { @class = "form-control", id = "Description", name = "Description" })
        </div>
        <br />
        <label for="Owner" class="control-label">接口的拥有者：</label>
        <div class="textBoxDiv">
            @Html.TextBoxFor(Model => Model.Owner, new { @class = "form-control", id = "Owner", name = "Owner" })
        </div>

        <br />
        <input id="save" type="submit" class="btn btn-primary" value="保存" />
    </div>
    <br />
    <div id="updateResult">

        @if (ViewBag.Result == true)
        {
            <label>更新成功</label>
        }

    </div>
</form>